import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  {
    path: 'productdetail',
    loadChildren: () => import('./pages/productdetail/productdetail.module').then( m => m.ProductdetailPageModule)
  },
  {
    path: 'order',
    loadChildren: () => import('./pages/order/order.module').then( m => m.OrderPageModule)
  },
  {
    path: 'addrset',
    loadChildren: () => import('./pages/addrset/addrset.module').then( m => m.AddrsetPageModule)
  },
  {
    path: 'myorder',
    loadChildren: () => import('./pages/myorder/myorder.module').then( m => m.MyorderPageModule)
  },
  {
    path: 'productlist',
    loadChildren: () => import('./pages/productlist/productlist.module').then( m => m.ProductlistPageModule)
  },
  {
    path: 'productedit',
    loadChildren: () => import('./pages/productedit/productedit.module').then( m => m.ProducteditPageModule)
  },
  {
    path: 'purchaselist',
    loadChildren: () => import('./pages/purchaselist/purchaselist.module').then( m => m.PurchaselistPageModule)
  },
  {
    path: 'purchaseedit',
    loadChildren: () => import('./pages/purchaseedit/purchaseedit.module').then( m => m.PurchaseeditPageModule)
  },
  {
    path: 'saleslist',
    loadChildren: () => import('./pages/saleslist/saleslist.module').then( m => m.SaleslistPageModule)
  },
  {
    path: 'login',
    loadChildren: () => import('./pages/login/login.module').then( m => m.LoginPageModule)
  },
  {
    path: 'regist',
    loadChildren: () => import('./pages/regist/regist.module').then( m => m.RegistPageModule)
  }
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
